package com.tosit.bmx.mapper;

import com.tosit.bmx.domian.SecondSub;
import com.tosit.bmx.domian.SecondType;
import com.tosit.bmx.domian.SecondTypeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SecondTypeMapper {
    long countByExample(SecondTypeExample example);

    int deleteByExample(SecondTypeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SecondType record);

    int insertSelective(SecondType record);

    List<SecondType> selectByExample(SecondTypeExample example);

    SecondType selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SecondType record, @Param("example") SecondTypeExample example);

    int updateByExample(@Param("record") SecondType record, @Param("example") SecondTypeExample example);

    int updateByPrimaryKeySelective(SecondType record);

    int updateByPrimaryKey(SecondType record);







//    /------*--------------------------------------------------------------------------------



    /**
     * 删除一个或多个套题
     *
     * @param ids
     * @return
     * @author tsl
     * @date 2018/4/24 14:31
     */
    Integer deleteSeconds(@Param("ids") List<Integer> ids);
    /**
     * 加入一个或多个套题
     * @author tsl
     * @date 2018/4/25 9:54
     * @param
     * @return
     */
    Integer insertSelectives(@Param("secondTypes") List<SecondType> secondTypes);
/**
 *  获取最后一个secondType
 * @author tsl
 * @date 2018/4/25 14:36
 * @param
 * @return
 */
    SecondType getLastSecondType();

}